package cn.hchaojie.blog.mapper;

import java.sql.SQLException;
import java.util.List;

import cn.hchaojie.blog.domain.Category;

public interface CategoryMapper {
	List<Category> findAll();
	
	void insert(Category category);
	
	/**
	 * 编辑分类
	 */
	void update(Category category);
	
	void delete(int id) throws SQLException;
	
	Category findById(int id);
}
